package com.tianpengtech.front.web.passport;

import com.tianpengtech.common.model.opertion.Opertion;

/**
 * 操作日志
 */
public class OpertionService {
    public static OpertionService me = new OpertionService();
    private Opertion opertion = Opertion.dao;

    /**
     * 获取认证信息审核失败原因
     * @param authId
     * @return
     */
    public String getAuthCheckLog(String authId){
        Opertion op=opertion.findFirst("select * from "+opertion.tableName()+" where "+Opertion.OPT_TYPE
        		+"=? and "+Opertion.OBJ_ID+"=? order by "+Opertion.ID+
        		" desc",Opertion.OPT_AUTHENTICATE_LOG,authId);
        if (op==null){
            return "";
        }else{
            return op.getStr(Opertion.CONTENT);
        }
    }


}
